package com.zyong.design.pattern.mediator.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: Mediator
 * @author: zyong
 * @create: 2024-04-02 23:50
 */
public interface Mediator {
    /**
     * 将同事类对象，加入到集合中
     * @param colleagueName
     * @param colleague
     */
    void register(String colleagueName, Colleague colleague);

    /**
     * 接收消息，具体的同事对象发出
     * @param stateChange
     * @param colleagueName
     */
    void getMessage(int stateChange, String colleagueName);

    /**
     * 转发消息
     */
    void sendMessage();
}
